package com.CampusLife.service;

import com.CampusLife.bean.LostProduct;
import com.CampusLife.bean.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IProductService {
    List<Product> queryAll();

    Product queryById(Integer pid);

    void add(Product product);

    void update(Integer pid);

    void delete(Integer pid);
    Product getProduct (Product pid);
    List<Product>  getProductAllShen();
    List<Product>   getProductAll();
    List<Product> getProductByname(@Param("p_name") Product p_name);
    List<Product> getProductByType(int t_id);
}
